<%-- 
    Document   : index
    Created on : 24/05/2012, 17:21:47
    Author     : Diogo, Gilvan, Lélandi e Lucas
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view locale="#{localeController.currentLocale}">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title><h:outputText value = "#{msg.tituloPagina}"/></title>
        </head>
        <center>
            <body>
                <h:form id="formNovoItem">
                    <h:panelGrid columns="2">
                        <f:facet name = "header">
                            <h:outputText value = "#{msg.tituloPaginaNovoItem}"/>
                        </f:facet>
                        
                        <h:outputText value = "#{msg.tituloLinhaNumSerie}"/>
                        <h:inputText value = "#{InventarioController.objInventario.numeroSerie}" />

                        <h:outputText value = "#{msg.tituloLinhaNome}"/>
                        <h:inputText value = "#{InventarioController.objInventario.nome}" />

                        <h:outputText value = "#{msg.tituloLinhaDescricao}"/>
                        <h:inputText value = "#{InventarioController.objInventario.descricao}" />

                        <h:outputText value = "#{msg.tituloLinhaFabricante}"/>
                        <h:inputText value = "#{InventarioController.objInventario.fabricante}" />

                        <h:outputText value = "#{msg.tituloLinhaMarca}"/>
                        <h:inputText value = "#{InventarioController.objInventario.marca}" />
                        
                        <h:outputText value = "#{msg.tituloLinhaModelo}"/>
                        <h:inputText value = "#{InventarioController.objInventario.modelo}" />
                       
                        <h:outputText value = "#{msg.tituloLinhaEndIp}"/>
                        <h:inputText value = "#{InventarioController.objInventario.endIp}" />

                        <h:outputText value = "#{msg.tituloLinhaTipo}"/>
                        <h:inputText value = "#{InventarioController.objInventario.tipo}" />
                        
                        <h:outputText value = "#{msg.tituloLinhaDtCompra}"/>
                        <h:inputText value = "#{InventarioController.objInventario.dtCompra}" >
                            <f:convertDateTime pattern="dd/MM/yyyy"/>
                        </h:inputText>

                        <h:outputText value = "#{msg.tituloLinhaValorCompra}"/>
                        <h:inputText value = "#{InventarioController.objInventario.valorCompra}" />
       
                        <h:outputText value = "#{msg.tituloLinhaCategoria}"/>
                        <h:inputText value = "#{InventarioController.objInventario.valorDepreciacao}" />
                                                
                        <h:outputText value = "#{msg.tituloLinhaFornecedor}"/>
                        <h:inputText value = "#{InventarioController.objInventario.fornecedor}" />
                                                
                        <h:outputText value = "#{msg.tituloLinhaLocalizacao}"/>
                        <h:inputText value = "#{InventarioController.objInventario.localizacao}" />
                                                
                        <h:outputText value = "#{msg.tituloLinhaSoftware}"/>
                        <h:inputText value = "#{InventarioController.objInventario.software}" />
                                                
                    </h:panelGrid>
                    <center>
                        <h:commandButton value = "#{msg.tituloBotaoGravar}" action="#{InventarioController.gravarNovoItem()}"/>
                        <td />
                        <td />
                        <h:commandButton value = "#{msg.tituloBotaoLimpar}" type="reset" />
                        <td />
                        <td />
                        <h:commandButton value = "#{msg.tituloBotaoCancelar}" action="voltar" />
                    </center>
                </h:form>
            </body>
        </center>
    </html>
</f:view>
